cmake_minimum_required(VERSION 3.10)
project(lbd)  # 项目名
find_package(OpenCV REQUIRED)  # 查找OpenCV库
include_directories(${OpenCV_INCLUDE_DIRS})  # 引入OpenCV头文件
add_executable(lbd lbd.cpp)  # 生成可执行文件
target_link_libraries(lbd ${OpenCV_LIBS})  # 链接OpenCV库
